﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Clustering;
using DO.Clustering;

namespace BLL.Clustering
{
    public class ClusteringResultManager
    {
        public static List<string> GetClusteringResultNames(
            string connName, string resultTbl, string taskField)
        {
            return ClusteringDALC.ListClusteringOutputs(connName, resultTbl, taskField);
        }

        public static DocumentClusteringOutput GetClusteringOutput(
            string connName, string resultTbl, string taskField, 
            string dataField, string taskName)
        {
            return ClusteringDALC.GetClusteringResult(
                connName, resultTbl, taskField, dataField, taskName);
        }

        public static void DeleteClusteringResult(
            string connStr, string resultTbl, string taskField, 
            string dataField, string taskName)
        {
            ClusteringDALC.DeleteClusteringResult(
                connStr, resultTbl, taskField,
                dataField, taskName);
        }

        public static void RenameClusteringResult(string connStr, string resultTable, string taskField,
            string oldName, string newName)
        {
            ClusteringDALC.RenameClusteringResult(connStr,resultTable,taskField,oldName,newName);
        }
    }
}
